const promise = new Promise(function (resolve, reject){
    resolve()
})

promise.then(function(value){
    console.log('resolve')
}, function(err){
    console.log('reject')
})